<?php

session_start();
/* echo '<pre>';
  var_dump($_SERVER);
  var_dump(__FILE__); */
//include des fichiers de config  et librairies
require_once('./config/inc.php');
require_once(DS . "include/functions.php");
require_once(DS . "classes/Index.class.php");

if (isset($_GET['err']) && !empty($_GET['err']))
{
    $err = $_GET['err'];
}
else
{
    $err = 0;
}


$module = $_GET["m"];
$index = Index::getInstance();
        if (isset($module))
        {
            $inc = $index->findTemplate($module);
            include_once (DS . $inc );
        }
       
?>
